package com.qf.dao;

import com.qf.pojo.Car;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarMapper {
    //按照价格降序排序
    List<Car> findAllByPrice();

    //按照热度降序排序
    List<Car> findAllByHot();

    //根据车id找车
    Car findCarById(@Param("id") int id);
}
